package com.xiaohao.student_course.service;

import com.xiaohao.student_course.bean.Teacher;
import com.xiaohao.student_course.dao.TeacherDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2018-12-17 23:39
 * @package com.xiaohao.student_course.service
 * @description
 */
@Service
public class TeacherService {
    @Autowired
    private TeacherDao teacherDao;
    public List<Teacher> getAll(){
        return teacherDao.findAll();
    }
}
